﻿@model BDSimpleStatus.Controllers.StatusFormViewModel

@{
    ViewBag.Title = "Server Statuses";
}

<h2>Server Status</h2>
<div id="statuslistwrap">
    @foreach(var scfvm in Model.scfvm)
    {
        <div class="statuscheckwrap @scfvm.rowcssclass">
            <div class="checkname">
                <h3 title="@scfvm.scm.Description">@scfvm.scm.Name</h3>
            </div> 
            <div class="checkisok @scfvm.CheckPingCss">
                <div class="checkisname">ping</div>
                <div>@scfvm.scm.IsPingOk</div>
            </div> 
            <div class="checkisok @scfvm.CheckHttpCss">
                <div class="checkisname">http</div>
                <div>@scfvm.scm.IsHttpOk</div>
            </div> 
            <div class="checkdates">
                <div class="checkisname">Last Check</div>
                @scfvm.scm.LastCheckDate.Value.ToString("MM/dd/yyyy hh:mm:ss")
            </div> 
            <div class="checkdates">
                <div class="checkisname">Next Check</div>
                @scfvm.scm.NextCheckDate.ToString("MM/dd/yyyy hh:mm:ss")
            </div> 
            <div class="checkmessage">
                <div class="checkisname">Message</div>
                @scfvm.scm.Message
            </div>
        </div>
    }
-</div>
